package com.ev.scm.dao;

import com.ev.scm.domain.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 爱塞露扫码出入库明细表
 */
@Mapper
public interface AslBarStockDao {

	AslBarStockDO get(Map<String, Object> params);

	List<AslBarStockDO> list(Map<String, Object> param);


	int save(AslBarStockDO aslBarStockDO);

	int saveTrayStock(@Param("list") List<AslTrayStockDO> aslBarStockDOs);

	int updateTrayStock(@Param("list")List<AslTrayStockDO> aslBarStockDOs);

	int update(AslBarStockDO bankTransferItem);

	int countByTrayId(Map<String, Object> map);

	Map<String, Object> countInTotal(Map<String, Object> params);

	Map<String, Object> getDelivery(Map<String, Object> params);

	List<Map<String, Object>> listInStock2(Map<String, Object> params);

	List<Map<String, Object>> listInStock(Map<String, Object> params);

	Map<String, Object> countOutTotal(Map<String, Object> params);

	List<Map<String, Object>> listOutStock(Map<String, Object> params);

	Map<String, Object> getProductionByTrayId(Long trayId);
}
